const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const DoctorSchema = new Schema({
    jobNumber:{
        type:String,
        required:true
    },
    name:{
        type:String,
        required:true
    },
    age:{
        type:Number,
        required:true
    },
    sex:{
        type:String,
        required:true
    },
    hospital:{
        type:String,
        required:true
    },
    department:{
        type:String,
        required:true
    },
    adress:{
        type:String,
        required:true
    },
    position:{
        type:String,
        required:true
    },
    phone:{
        type:Number,
        required:true
    },
    email:{
        type:String,
        default:''
    },
    personalProfile:{
        type:String,
        default:''
    },
})
module.exports =  Doctor  = mongoose.model("doctor",DoctorSchema)